Skip to main content

Detector library

Project description

aef-nattanon-py-lib

Documentation Status

Install

$ pip install aef-nattanon-py

Demo

Simple Demo

# Import aef_nattanon_py from your library
import aef_nattanon_py as aef
import cv2

# Multiplication
multiplication = aef.Multiplication(2)
print(multiplication.multiply(5)) # 10

# direct_by_img_path
myDetector = aef.Detector('coco.names', 'yolov3-tiny.cfg', 'yolov3-tiny.weights')
myDetector.detact_by_img_path('my-photo.jpeg')
cv2.imshow("Image", myDetector.detect_img)
cv2.waitKey(100)

# direct_by_frame
cap = cv2.VideoCapture(0)
while True:
    _, frame = cap.read()
    myDetector.detact_by_frame(frame)
    cv2.imshow("Image", myDetector.detect_img)
    cv2.waitKey(1)

cv2.destroyAllWindows()

# YoloV3Director
myDetector = aef.YoloV3Detector()
cap = cv2.VideoCapture(0)
while True:
    _, frame = cap.read()
    myDetector.detect_by_frame(frame)
    cv2.imshow("Image", myDetector.detect_img)
    cv2.waitKey(1)

cv2.destroyAllWindows()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aef-nattanon-py-0.2.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

aef_nattanon_py-0.2.3-py3-none-any.whl (32.9 MB view details)

Uploaded Python 3

File details

Details for the file aef-nattanon-py-0.2.3.tar.gz.

File metadata

  • Download URL: aef-nattanon-py-0.2.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for aef-nattanon-py-0.2.3.tar.gz
Algorithm Hash digest
SHA256 7a2de2f3b43f296ab0046689f350b4f1c6137ac63737c8f65e0aab5bd9021329
MD5 955b69c172540713c5860867ad6e5aa2
BLAKE2b-256 5fe7bc422b8b44749b5e862e728ff1c2976b958232ef5779071efc8d90834770

See more details on using hashes here.

File details

Details for the file aef_nattanon_py-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: aef_nattanon_py-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 32.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for aef_nattanon_py-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6108fa807afcc2f3ae37e52854188fb143a9f298b0a4acc340e28eed9937b7
MD5 f04e4a060bb1fbdc476e602d5422e4af
BLAKE2b-256 ec5ae475d4e3c2eb223965fc5eff6e867bbd735566a876ea5b78df9f67bf21af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page